/*
 * This file is part of quickLoad, a software for gamers
 *
 * Copyright (C) 2005-2008 Lucas Romero
 *
 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>.
 */
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace QuickLoad.UI
{
    public partial class FormAbout : Form
    {
        string title;
        public FormAbout(string title)
        {
            InitializeComponent();
            this.title = title;
        }

        private void FormAbout_Load(object sender, EventArgs e)
        {
            Text = title;
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                if(((LinkLabel)sender).Name == "linkLabel3")
                    System.Diagnostics.Process.Start("mailto:" + ((LinkLabel)sender).Text);
                else
                    System.Diagnostics.Process.Start(((LinkLabel)sender).Text);
            }
            catch(Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
    }
}